<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <?php echo $this->Html->charset(); ?>
    <title>
        <?php echo $title_for_layout; ?>
    </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <?php
    echo $this->Html->meta('icon');

    echo $this->Html->css('bootstrap');
    echo $this->Html->css('bootstrap-responsive');
    echo $this->Html->css('jquery.nanoscroller');
    echo $this->Html->css('flexgrid/flexigrid');
    echo $this->Html->css('custom');
    echo $this->Html->css('student/styles');

    echo $this->Html->script('jquery-1.7.2.min.js');
    echo $this->Html->script('maskinput.js');
    echo $this->Html->script('bootstrap/bootstrap.min.js');
    echo $this->Html->script('jquery.nanoscroller.min');
    echo $this->Html->script('flexigrid.js');
    echo $this->Html->script('jLib.js');

    echo $scripts_for_layout;
    ?>
</head>
<body>
<div class="container-fluid">
    <?php echo $this->element('loader'); ?>
    <div class="row-fluid">
        <?php echo $this->Session->flash(); ?>

        <div class="navbar navbar-fixed-top nbg">
            <div class="navbar-inner">
                <a class="brand" href="<?php echo $this->Html->url(array('action' => 'index')); ?>">
                    <?php echo $this->Html->image('app/logo_sm.png', array('height' => '24')); ?>
                </a>

                <span class="title pull-left"><?php echo $title_for_layout; ?></span>

                <ul class="nav pull-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> <b><?php echo $authuser['fname']; ?></b>
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo $this->Html->url(array('controller'=>'Staff','action' => 'logout')); ?>"><i class="icon-off"></i> Sign Out</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>

        <div class="row">
            <?php
            if ($authuser['user_level'] == 'Admin') {
                echo $this->element('staff/staff_admin_nav');
            }
            else{
                echo $this->element('staff/staff_nav');
            }
            ?>
            <div id="right_main" class="span9">
                <div id="main_group" class="inner_shadow">
                    <?php echo $this->fetch('content'); ?>
                </div>
            </div>
        </div>
    </div>
    <!--/row-->
</div>
</body>
</html>